<? include_once("../../../common/common_setting_unit.php"); //引入通用的设置文件?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <? include_once(ROOT_PATH_ . "/controller/common/module/head.php"); ?>
    <? include_once("../controller/data_list.php"); ?>
</head>

<body>
<div id="topbar">
    <?php include ROOT_PATH_ . '/controller/common/module/topbar.php'; ?>
</div>

<div id="container" class="<? echo $now_extender ?>">
<div id="maincontent">


        <div id="sidebar">
            <?php include ROOT_PATH_ . '/controller/common/module/sidebar.php'; ?>
        </div>



        <div id="content">

            <!--标题设定-->
            <?php $page_title='平台列表';?>
            <?php include ROOT_PATH_ . '/controller/common/module/mod-page-title.php'; ?>



<?
//==============================================================================
//这里开始才是平常开发需要注重的部分，其余的基本不用理会
//==============================================================================
?>


            <!-- 用$now_extender .list_boxe来控制来到确认板块信息显示-->
            <div class="list-box">
                    <table class="layui-table">
                        <colgroup>
                            <col width="80" >

                            <col >
                            <col >
                            <col width="280" >
                        </colgroup>
                        <thead>
                        <tr>
                            <th>序号</th>
                            <th>平台</th>
                            <th>行为</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>


                        <?php for ($i = 0; $i < $_quantity_per_page; $i++) {?>

                            <tr id="item<? echo $data['data_list'][$i]['nid'] ?>">

                                <td><? echo $i + 1 + $plate['page_list_num'] * ($nowpageid - 1) ?></td>

                                <td> <? echo $data['data_list'][$i]['name'] ?></td>

                                <td><? echo $data['data_list'][$i]['action'] ?></td>

                                <td>


                                    <a href="data_edit.php?<? echo $data['url_parameter'] ?>&nid=<? echo $data['data_list'][$i]['nid'] ?>"
                                       class="layui-btn  layui-btn-sm">
                                       <i class="fa fa-bar-chart-o" aria-hidden="true"></i>修改
                                    </a>

                                    <a href="data_edit.php?now_extender=employee&nid=<? echo $data['data_list'][$i]['nid'] ?>&nowpageid=<? echo $_REQUEST['nowpageid'] ?>"
                                       class="layui-btn  layui-btn-sm" target="_blank">
                                        <i class="fa fa-bar-chart-o" aria-hidden="true"></i>信息
                                    </a>



                                    <span
                                            onclick="deleter(<?php echo $data['data_list'][$i]['nid'] ?>,'data_delete_process')"
                                            class="layui-btn layui-btn-sm layui-btn-primary">
                                        <i class="layui-icon">&#xe640;</i>删除
                                    </span>

                                </td>

                                
                            </tr>
                        <?php;} ?>



                        </tbody>
                    </table>



                    <?php //无数据时显示
                    if (count($data['data_list']) == 0) { echo "暂无数据"; }
                    ?>



                    <!-- todo 这里需要做0判断-->
                    <?php include 'module/page_numbers.php'; ?>





                <?//============================================?>
                <?//以下JS部分需要根据实际情况去加载?>
                <?//============================================?>
            </div>
            <!--content end-->
            <br class="clearfloat"/>
            <!--container-->
        </div>

    <?
        //==============================================================================
        //JS加载区域
        //==============================================================================
    ?>

    <!--载入删除功能-->
    <script type="text/javascript" src="/controller/common/asset/js/deleter.js"></script>
    <!--载入弹出窗口功能-->
    <script type="text/javascript" src="/controller/common/asset/js/window_eject.js"></script>
    <!--载入弹checkbox全选功能；在layui内部实现-->
    <script type="text/javascript" src="/controller/common/asset/js/check_all_checkbox.js"></script>
    <script type="text/javascript" src="/controller/common/asset/js/mulity_delete_button.js"></script>



    <script>
        //layui渲染过的元素，需要在这里写函数

        layui.use('form', function(){
            var form = layui.form;

            //layui中，处理checkbox
            check_all_checkbox(form)

            //监控复选框，选择一个就触发删除按钮
            mulity_delete_button(form)


        });
    </script>

    <!--底部栏-->
    <?php include $_SERVER['DOCUMENT_ROOT']."/controller/common/module/footer.php"; ?>

